package com.geniusk.system.service.impl;

import com.geniusk.system.model.mapper.ModelActionMapper;
import com.geniusk.system.model.pojo.ModelAction;
import com.geniusk.system.service.ModelActionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ModelActionServiceImpl implements ModelActionService {

    @Autowired
    private ModelActionMapper modelActionMapper;

    @Override
    public List<ModelAction> selectModelActionByModelId(Long modelId) {
        return modelActionMapper.selectModelActionByModelId(modelId);
    }

    @Override
    public ModelAction selectModelActionById(Long modelActionId) {
        return modelActionMapper.selectModelActionById(modelActionId);
    }

    @Override
    public int insertModelAction(ModelAction modelAction) {
        return modelActionMapper.insertModelAction(modelAction);
    }

    @Override
    public int updateModelAction(ModelAction modelAction) {
        return modelActionMapper.updateModelAction(modelAction);
    }

    @Override
    public int deleteModelActionByIds(Long[] ids) {
        return modelActionMapper.deleteModelActionByIds(ids);
    }
}
